
package de.justphil.tcg.tcgandroidclient.content.rest;


/**
 * @author Martin Immutable
 * 
 * 
 */
public class RESTDeck {
	
	private final long deckId;
	private final long[] cardIds;
	private final String name;
	
	public RESTDeck(long deckId, long[] cardIds, String name) {
	
		this.deckId = deckId;
		this.cardIds = cardIds.clone();
		if(name == null || "".equals(name)|| "NULL".equals(name)){
			throw new IllegalArgumentException("Invalid name!");
		}
		
		this.name = name;
	}
	
	public long getDeckId() {
	
		return deckId;
	}
	
	public long[] getCardIds() {
	
		return cardIds.clone();
	}
	
	public String getName() {
	
		return name;
	}
}
